package com.example.entity;

import java.util.List;

public class Order {
    private Integer orderid;
    private Integer userid;
    private Integer recipeid;
    private Integer num;
    private Double price;
    private String orderstatus;
    private String ordertime;
    private String deliverytime;
    private List<OrderDetail> orderDetails;

    public Integer getOrderid() {
        return orderid;
    }

    public void setOrderid(Integer orderid) {
        this.orderid = orderid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getRecipeid() {
        return recipeid;
    }

    public void setRecipeid(Integer recipeid) {
        this.recipeid = recipeid;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getOrderstatus() {
        return orderstatus;
    }

    public void setOrderstatus(String orderstatus) {
        this.orderstatus = orderstatus;
    }

    public String getOrdertime() {
        return ordertime;
    }

    public void setOrdertime(String ordertime) {
        this.ordertime = ordertime;
    }

    public String getDeliverytime() {
        return deliverytime;
    }

    public void setDeliverytime(String deliverytime) {
        this.deliverytime = deliverytime;
    }
    public List<OrderDetail> getOrderDetails() {
        return orderDetails;
    }

    // 修改setOrderDetails()方法
    public void setOrderDetails(List<OrderDetail> orderDetails) {
        this.orderDetails = orderDetails;
    }
    @Override
    public String toString() {
        return "Order{" +
                "orderid=" + orderid +
                ", userid=" + userid +
                ", recipeid=" + recipeid +
                ", num=" + num +
                ", price=" + price +
                ", orderstatus='" + orderstatus + '\'' +
                ", ordertime='" + ordertime + '\'' +
                ", deliverytime='" + deliverytime + '\'' +
                ", orderDetails=" + orderDetails +
                '}';
    }


    }

